#pragma once

#include "Mysql.h"

namespace Database
{

class AFX_EXT_CLASS StationRow
{
public:
	StationRow(void);

	~StationRow(void);

public:
	std::string getID() const;

	void setID(const std::string &id);

	std::string getGuid() const;

	void setGuid(const std::string &gd);

	std::string getAddress() const;

	void setAddress(const std::string &as);

	std::string getDescription() const;

	void setDescription(const std::string &dn);

private:
	std::string	_id;
	std::string	_guid;
	std::string _address;
	std::string _description;
};

class AFX_EXT_CLASS StationTable
	: public Table
{
public:
	StationTable();

	~StationTable();

public:
	bool insert(const StationRow &sn);

	bool select(std::list<StationRow> &sns);

	bool updateByID(const StationRow &sn);

	bool deleteByID(const StationRow &sn);
};

}